package service.impl;

import dao.UserDao;
import dao.impl.UserDaoImpl;
import entity.User;
import factory.UserDaoFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import service.UserService;
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
 private UserDao userDao;

    public UserServiceImpl(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void save(User user) {
        userDao.save(user);
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public UserServiceImpl() {
        
    }
    
    
}
